import request from '@/utils/request'
// 获取图书热播
export function getHotBookList() {
	return request({
		url: '/book/lend/getHotList',
		method: 'get'
	})
}
// 获取借阅记录
export function getLendList(queryForm) {
	return request({
		url: '/book/lend/getLendMessage',
		method: 'get',
		data: queryForm
	})
}
// 获取罚款记录
export function getPenaltyList(queryForm) {
	return request({
		url: '/user/penalty/searchList',
		method: 'get',
		data: queryForm
	})
}

// 查询作者id
export function getAuthorId(data){
	return request({
		url:'/bookManage/selectAuthorAndPublishDict',
		method:'post',
		data
	})
}
//添加作者id
export function addAuthorId(data){
	return request({
		url:'/bookManage/addBookAuthor',
		method:'post',
		data
	})
}

//出版社id字查询接口
export function getPublishId(data){
  return request({
    url:'/bookManage/selectAuthorAndPublishDict',
    method:'post',
    data
  })
}

//出版社id添加接口
export function addPublishId(data){
	return request({
		url:'/bookManage/addBookAuthor',
		method:'post',
		data
	})
}

//语言id典查询接口
export function getLanguageId(data){
  return request({
    url:'/bookManage/selectAuthorAndPublishDict',
    method:'post',
    data
  })
}
//语言id添加
export function addLanguageId(data){
  return request({
    url:'/bookManage/addBookAuthor',
    method:'post',
    data
  })
}

//查询分类
export function getCategoryList(data){
  return request({
    url:'/bookManage/selectBookAuthor',
    method:'post',
    data
  })
}
//添加图书接口
export function addBook(data){
  return request({
    url:'/bookManage/addBook',
    method:'post',
    data:data
  })
}

//修改图书
export function editBook(data){
  return request({
    url:'/bookManage/updateBook',
    method:'post',
    data:data
  })
}


